import styled from 'styled-components'

export const LtSwitchWrapper = styled.div`
  .switch {
    width: 40px;
    height: 20px;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 15px;
    box-sizing: border-box;
    overflow: hidden;

    input {
      width: 0px;
      height: 0px;
      opacity: 0;
    }

    .show_bgc {
      width: 100%;
      height: 100%;
      position: absolute;
      background-color: #e0e2e7;
      transition: all 0.3s;
    }

    input:checked + .slider {
      transform: translateX(16px);
    }

    input:checked ~ .show_bgc {
      background-color: #1e90ff;
    }

    .slider {
      width: 13px;
      height: 13px;
      border-radius: 50%;
      transition: all 0.3s;
      position: relative;
      z-index: 99;
      margin-left: 5px;
      background-color: #fff;
    }
  }
`
